using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using BUS;
using Utility;
using System.IO;

public partial class Admin_KhachHangChiTiet : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }
    private void LoadData()
    {
        try
        {
            int iD = int.Parse(Request.QueryString["iD"].ToString());
            lit_makhachhang.Text = iD.ToString();
            tbKhachHang khachhang = tbKhachHangBUS.GetByID(iD);
            lit_tenkhachhang.Text = khachhang.HoTen;
            lit_gioitinh.Text = khachhang.GioiTinh;
            lit_ngaysinh.Text = khachhang.NgaySinh.ToString ();
            lit_email.Text = khachhang.Email;
            lit_taikhoan.Text = khachhang.TaiKhoan;
            lit_matkhau.Text = khachhang.MatKhau;
            lit_diachi.Text = khachhang.DiaChi;
            lit_dienthoai.Text = khachhang.DienThoai;
            lit_sotknh.Text = khachhang.SoTKNH;
        }
        catch
        {
            Response.Redirect("~/Admin/KhachHangDanhSach.aspx");
        }
    }
}
